home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / SYS / s / PrintBlk.bed < prev    next >
Text File  |  1996-09-26  |  653b  |  46 lines

  1. /*
  2. ** $VER: PrintBlk.bed 1.0 (03.01.96)
  3. **
  4. ** Print the currently selected block
  5. */
  6.  
  7. OPTIONS RESULTS
  8. OPTIONS FAILAT 21
  9.  
  10. GetBlkInfo
  11. PARSE VAR RESULT mode . sel_y sel_x
  12.  
  13. IF mode = "OFF" THEN DO
  14.     SetStatusBar "No block selected!"
  15. END; ELSE DO
  16.  
  17.     SetDisplayLock ON
  18.     SetInputLock ON
  19.  
  20.     GetCursorPos
  21.     PARSE VAR RESULT y x .
  22.  
  23.     TaskID = Pragma('ID')
  24.  
  25.     SaveClip QUIET NOICON NOBACKUP 'T:OldClip' || TaskID
  26.  
  27.     CopyBlk
  28.     PrintClip name
  29.  
  30.     OpenClip 'T:OldClip' || TaskID
  31.  
  32.     Move sel_y sel_x
  33.     MarkBlk
  34.  
  35.     Move y x
  36.  
  37.     SetDisplayLock OFF
  38.     SetInputLock OFF
  39. END
  40.  
  41. IF ~Show(L,'rexxsupport.library') THEN DO
  42.     AddLib('rexxsupport.library',0,-30)
  43. END;
  44.  
  45. Delete("T:OldClip-" || TaskID)
  46.